package top.zhangjianyong.blog.params.user;

/**
 * 用户分页查询接口参数
 *
 * @author HDN
 * @since 2024/7/21 下午3:14
 */
public record UserPageParam(String username, Integer pageNum, Integer pageSize) {
  public UserPageParam {
    if (pageNum == null || pageNum < 1) pageNum = 1;
    if (pageSize == null || pageSize < 1) pageSize = 10;
  }
}
